//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        //TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
        // to see how IntelliJ IDEA suggests fixing it.
        System.out.println("Hello and welcome!");

        PowerAdapter adapter = new PowerAdapter( new AC220() );
        //System.out.println("原始电压:"+adapter.outPutVoltage());
        System.out.println("适配之后"+adapter.outPut5V());
        System.out.println("适配之后"+adapter.outPut12());


    }
}